﻿using AIO.Entity.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AIO.Entity
{
    /// <summary>
    /// 缴费记录
    /// </summary>
    [Table("AA01")]
    public class PayInfo:BaseEntity
    {
        /// <summary>
        /// 应当缴费金额
        /// </summary>
        [Column("AA001")]
        [Required]
        public Double MoneyShould { get; set; }

        /// <summary>
        /// 实际缴费金额
        /// </summary>
        [Column("AA002")]
        [Required]
        public Double MoneyActual { get; set; }

        /// <summary>
        /// 缴费时间
        /// </summary>
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd HH:m:ss}"
           , ApplyFormatInEditMode = true)]
        [Column("AA003")]
        [Required]
        public DateTime PayTime { get; set; }

        /// <summary>
        /// 缴费学生
        /// </summary>
        [Column("AA004")]
        public Student? Student { get; set; }

        /// <summary>
        /// 经办人（老师）
        /// </summary>
        [Column("AA005")]
        public Teacher? HandledTeacher { get; set; }

    }
}
